package com.citicup.backend.service.FundService.FundComparator;

import com.citicup.backend.service.FundService.FundSortInfo;

import java.util.Comparator;

public class MaxRetraceRateComp implements Comparator<FundSortInfo> {

    @Override
    public int compare(FundSortInfo o1, FundSortInfo o2) {
        //越小越好
        return Double.compare(o1.getFundInfo().getMaxRetraceRate(), o2.getFundInfo().getMaxRetraceRate());
    }
}